package com.tongji.diy.event
{
	import com.tongji.diy.model.RoomDataVO;
	import com.tongji.diy.view.component3D.RoomBorder;
	import com.tongji.diy.view.component3D.ShapeToAdd;
	import com.tongji.diy.view.component3D.ShapeToAddRect;
	
	import flash.events.Event;
	
	/**
	 * 
	 * @author Sun
	 * 
	 */
	
	public class AddShapeEvent extends Event
	{
		public static const ADD_SHAPE:String = "addShape";
		
		public var shapeToAdd:ShapeToAdd;
		public var roomBorder:RoomBorder;
		public var room:RoomDataVO;
		
		public function AddShapeEvent(type:String, shapeToAdd:ShapeToAdd, roomBorder:RoomBorder, room:RoomDataVO)
		{
			super(type);
			this.shapeToAdd = shapeToAdd;
			this.roomBorder = roomBorder;
			this.room = room;
		}
		
		override public function clone():Event
		{
			return new AddShapeEvent(type, shapeToAdd, roomBorder, room);
		}
	}
}